package com.merrinapp;

import android.media.MediaPlayer;
import android.media.MediaPlayer.OnCompletionListener;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;

public class MainActivity extends Activity implements OnCompletionListener {

	public MediaPlayer mp;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		mp = MediaPlayer.create(this, R.raw.audio);
		mp.setOnCompletionListener(this);
		mp.start();
		
		
	}

	@Override
	public void onCompletion(MediaPlayer mp) {
		this.finish();
		
	}

}
